Adroid Studio 報 is not an enclosing class
代碼寫着寫着,突然報了這個錯誤:is not an enclosing class 什么鬼?怎么會這樣,然后,as提示我將這個類改為static 我代碼是這樣寫的: clas A{ c ...
代碼寫着寫着,突然報了這個錯誤:is not an enclosing class 什么鬼?怎么會這樣,然后,as提示我將這個類改為static 我代碼是這樣寫的: clas A{ c ...
1. 錯誤原因 該錯誤一般出現在對內部類進行實例化時,例如 此時B是A的內部類,如果我們要使用如下語句實例化一個B類的對象: A.B b = new A.B() 則會報 ...